package com.nancy.springioc.business.service;


import com.nancy.springioc.business.dao.GoodsDao;

public class GoodsServiceImpl implements GoodsService {

    private GoodsDao goodsDao;

    public GoodsServiceImpl() {
        System.out.println("GoodsServiceImpl 构造方法");
    }

    public void setGoodsDao(GoodsDao goodsDao) {
        this.goodsDao = goodsDao;
    }

    @Override
    public void save() {
        goodsDao.save();
    }
}
